Ext.define("ap_apply.view.apply_form.PAApplyForm", {
    extend: "Ext.panel.Panel",
    id:"pa-request-form",
    alias: "applyForm",
    title: "PA申请",
    titleAlign:"center",
    layout: {
        type: "table",
        columns: 6,
        tableAttrs: {
            style: {
                width: '100%'
            }
        }
    },
    requires: [
        "ap_apply.view.apply_form.PAApplyFormController",
        "ap_apply.view.apply_form.PAApplyFormModel",
        "ap_apply.store.apply_form.ProjectOwnerStore",
        "ap_apply.store.apply_form.ProjectYearStore"
    ],

    controller: "apply_form-paapplyform",
    viewModel: {
        type: "apply_form-paapplyform"
    },
    items: [
        {
            xtype: "label",
            text: "项目编号"
        },
        {
            xtype: "label",
            text: "系统自动带出",

        }, {
            xtype: "label",
            text: "项目申请人",
        }, {
            xtype: "label",
            text: "当前登录用户",
        }, {
            xtype: "label",
            text: "项目Owner",
        }, {
            xtype: "combobox",
            queryMode: 'local',
            displayField: 'name',
            valueField: 'id',
            reference: "projectOwner",
            store: {
                type: "projectOwner"
            }

        }, {
            xtype: "label",
            text: "项目名称",
        }, {
            xtype: "textfield",
            name: "project_name"
        }, {
            xtype: "label",
            text: "关键指标描述",
        }, {
            xtype: "textfield",
            name: "key_purpose"
        }, {
            xtype: "label",
            text: "项目预算",
        }, {
            xtype: "label",
            name: "target_amount",
            text: "0"
        }, {
            xtype: "label",
            text: "年度",
        }, {
            xtype: "combobox",
            queryMode: 'local',
            displayField: 'name',
            valueField: 'id',
            reference: "ProjectYear",
            store: {
                type: "projectYear"
            }
        }, {
            xtype: "label",
            text: "活动开始日期",
        }, {
            xtype: "datefield",
            name: "start_date",
        }, {
            xtype: "label",
            text: "活动结束日期",
        }, {
            xtype: "datefield",
            name: "end_date",
        }
        , {
            xtype: "label",
            text: "项目目的",
        }, {
            xtype: "textarea",
            name: "project_purpose",
            colspan:2

        },{
            xtype:"label",
            text:"",
            colspan:3
        }

    ]


});
